<?php namespace Home\Controller;
use Hdphp\Libs\Controller;
class CommonController extends  Controller
{
	public function __construct()
	{
		if(!isset($_SESSION['username']) || !isset($_SESSION['uid']))
		{			
			$this->success("请先登录","index.php?c=Login&a=login");
		}
		//为了不覆盖父级的构造方法
		parent::__construct();
	}
	
	
	
	
	
}
